﻿namespace Arms.Domain
{
    using System;
    using System.Collections.Generic;

    /// <summary>
    /// Base contract repository for a "described" entity
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IRepositoryDescribed<T> : IRepository<T> where T : EntityDescribed
    {
        /// <summary>
        /// Collection of entity by its name.
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        IEnumerable<T> GetByName(string name);
    }
}
